package com.softstao.guoyu.ui.adapter;

import com.softstao.guoyu.R;
import com.softstao.guoyu.model.me.Icon;
import com.softstao.guoyu.ui.baseAdapter.CommonBaseAdapter;
import com.softstao.guoyu.ui.baseAdapter.ViewHolder;
import com.softstao.softstaolibrary.library.widget.LZImageView;

import java.util.List;

/**
 * Created by vaikus on 2017/6/7.
 */

public class MeIconAdapter extends CommonBaseAdapter<Icon> {
    public MeIconAdapter(List<Icon> datas) {
        super(datas, R.layout.icon_item);
    }

    @Override
    public void convert(ViewHolder holder, Icon icon) {
        ((LZImageView) holder.getView(R.id.image_view)).setImageResource(icon.getPic());
        holder.setText(R.id.name_view,icon.getName());
    }
}
